import _ from 'lodash';

export const TenantRights = [
  { name: '普通租户', val: '00000000001' },
  { name: '资深租户', val: '00000000009' },
];

export const getTenantRights = (value) => {
  const index =  _.findIndex(TenantRights, function(o) { return o.val == value; });
  if (index != -1) {
    return TenantRights[index].name;
  }
  return value;
}